function getMsg(req,res) {
   console.log("getMsg called");
   
   //res.writeHead(200, {"Content-Type": "text/plain"});
        //res.write("this fun res");
        //res.end();
   
    var Msg = [
			{
				chatmate:'xuzheng',
				lasttime:'一个月以前',
				text:'你好这只是个测试',
				urlimage:'http://127.0.0.1:/images/top.png'
				
			},
			{
				chatmate:'xiaoming',
				lasttime:'一个月以前',
				text:'你好这只是个测试',
				urlimage:'http://127.0.0.1:/images/top.png'
				
			},
			{
				chatmate:'lisi',
				lasttime:'一个月以前',
				text:'你好这只是个测试',
				urlimage:'http://127.0.0.1:/images/top.png'
				
			}
		
		
		]
		
	
   //console.log(typeof(str));
   
	res.writeHead(200, {"Content-Type": "application/json;charset=utf-8"});
	//res.write("query called");
	//var str = {"name":"xuzheng"};
	res.write(JSON.stringify(Msg));
	res.end(); 
   
}
 
exports.getMsg = getMsg;
